﻿using System;
using System.Windows;
using GC_VKMD.MusicDownloaderClient.Abstractions.Factories;
using GC_VKMD.MusicDownloaderClient.Enums;
using GC_VKMD.MusicDownloaderClient.Windows;

namespace GC_VKMD.MusicDownloaderClient.Factories
{
	public class WindowFactory : WindowBaseFactory
	{
		#region Base Class Members

		public override Window CreateWindow(WindowType windowType)
		{
			switch (windowType)
			{
				case WindowType.MusicDownloader:
					return new MusicDownloaderSettings();

				case WindowType.VKAutorization:
					return new Windows.MusicDownloader();

				default:
					throw new NotImplementedException(string.Format("not implemented window type"));
			}
		}

		#endregion
	}
}
